#ifndef MAINCONTROL_H
#define MAINCONTROL_H

#include <QDialog>
#include <QDesktopWidget>
#include<QEvent>
#include "lightcontrol.h"
#include"systemsettingdialog.h"
#include "com.h"
#include "timinglistdialog.h"

namespace Ui {
    class MainControl;
}

class MainControl : public QDialog
{
    Q_OBJECT

public:
    explicit MainControl(QWidget *parent = 0);
    ~MainControl();
    LightControl* getLightControl();
    COM* getMyCom();

private:
    Ui::MainControl *ui;
    LightControl *lightControl;
    SystemSettingDialog *systemSettingDialog;
    COM *com;
    TimingListDialog *timingListDialog;
    void closeEvent(QCloseEvent *event);



private slots:
    void on_pushButton_10_clicked();
    void on_pushButton_9_clicked();
    void on_pushButton_6_clicked();
    void on_pushButton_5_clicked();
    void on_pushButton_3_clicked();
    void on_pushButton_clicked();
    void on_pushButton_2_clicked();
    void on_pushButton_11_clicked();
    void changeMyCom();
};

#endif // MAINCONTROL_H
